﻿using B.S.DataBase.MyProject.Domain.Sales;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.ViewModels
{
    public class View_SaleOrderInfo
    {
        /// <summary>
        /// 单据编码 主键 销售订单信息表唯一标识
        /// </summary>
        public Guid Id { get; set; }
        public int MaterialsId {  get; set; }
        /// <summary>
        /// 5单据状态（0:开立 1:退回  2：审核）
        /// </summary>
        public int DocumentStatus { get; set; } = 0;
        /// <summary>
        /// 4单据类型  1:业务订单 2：入库单  3:出库单
        /// </summary>
        public int DocumentType { get; set; } = 1;
        /// <summary>
        /// 客户名称id
        /// </summary>
        public int? CustomerId { get; set; }
        /// <summary>
        /// 单据日期（默认当前日期：）
        /// </summary>
        public string DocumentDate { get; set; }
        /// <summary>
        /// 销售人员
        /// </summary>
        public string? SaleUser { get; set; }
        /// <summary>
        /// 销售类型[1 国内品牌  2 外购成品  3 外购原料  4  自接订单  5 自制销售  6 客供销售]
        /// </summary>
        public int? SaleType { get; set; }
   
        //1111111111111111111111物料信息
        /// <summary>
        /// 物料编码
        /// </summary>
        public long MaterialsCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialsName { get; set; }
    
        /// <summary>
        /// 数量
        /// </summary>
        public int? CalulateNumber { get; set; }
        /// <summary>
        /// 出库数量
        /// </summary>
        public int? OutBoundNumber { get; set; }
 
    
        /// <summary>
        /// 单价
        /// </summary>
        public double? Price { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public double? TotalPrice { get; set; }
   
      
        //11111111111111111111111客户信息
        /// <summary>
        /// 客户名
        /// </summary>
        public string? CustomerName { get; set; }

    }
}
